package com.smart.tools;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 
 * 版权所有：xxxxxxx
 * @Description: 返回信息
 * @Title: ResponseMsg.java 
 * @ClassName: ResponseMsg 
 * @author tangyan 
 * @date 2019年2月12日 下午3:09:20 
 * @version V1.0
 */
public class ResponseMsg {
	
	/**
	 * 返回状态成功 0
	 */
	public final static Integer RESULT_STATUS_SUCESS = 0;
	
	/**
	 * 返回状态失败 -1
	 */
	public final static Integer RESULT_STATUS_ERROR = -1;
	
	/**
	 * id
	 */
	private String id;
	
	/**
	 * 返回状态
	 */
	private Integer status;
	
	/**
	 * 消息
	 */
	private String msg;
	
	/**
	 * 数据
	 */
	private Map<String, Object> datas;
	
	/**
	 *总条数
	 */
	private Long total;
	/**
	 *数据列
	 */
	private List<?> rows = new ArrayList<Object>();
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	public Map<String, Object> getDatas() {
		return datas;
	}
	public void setDatas(Map<String, Object> datas) {
		this.datas = datas;
	}
	public Long getTotal() {
		return total;
	}
	public void setTotal(Long total) {
		this.total = total;
	}
	public List<?> getRows() {
		return rows;
	}
	public void setRows(List<?> rows) {
		this.rows = rows;
	}
	
	
}
